<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<html>
<!--坑，删去开源的xml文档解析方式 -->
<!--回调时，超链接就按绝对写，可能编码时无法点进，但网页会显示正确 -->
<head>
    <link rel="StyleSheet" href="css/jpetstore.css" type="text/css"
          media="screen" />

    <meta name="generator" charset="UTF-8"
          content="HTML Tidy for Linux/x86 (vers 1st November 2002), see www.w3.org" />
    <title>My PetStore</title>
    <meta content="text/html; charset=windows-1252"
          http-equiv="Content-Type" />
    <meta http-equiv="Cache-Control" content="max-age=0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="Pragma" content="no-cache" />
</head>

<body>

<div id="Header">

    <div id="Logo">
        <div id="LogoContent">
            <a href="main"><img src="images/logo-topbar.gif" /></a>
        </div>
    </div>

    <div id="Menu">
        <div id="MenuContent">
            <a href="ViewCart"><img align="middle" name="img_cart" src="images/cart.gif" /></a> <img align="middle" src="images/separator.gif" />
            <c:if test="${sessionScope.account == null}">
                <a href="Login">Sign In</a>
            </c:if>

            <c:if test="${sessionScope.account != null}">
            <a>${sessionScope.accountMsg}</a>
            <a href="SignOut">Sign  Out </a> <img align="middle" src="images/separator.gif" />
            <a href="ToAccount">My Account</a> <img align="middle" src="images/separator.gif" /> <a href="../help.html">?</a>

            </c:if>

        </div>
    </div>

    <script src="js/jquery-3.5.1.min.js"></script>
    <script src="js/searchAutoFill.js"></script>

    <div id="Search">
        <div id="SearchContent">
            <form action="SearchProduct" method="post">
                <input type="text" name="keyword" id = "searchProduct" size="14" />
                <input type="submit" name="searchProducts" value="Search" />
            </form>
        </div>
    </div>

    <fieldset>
        <div name = "quickSearch" id="quickSearch">
            <ul name = "autoSearch" id = "autoSearch" >quick search:</ul>
        </div>
    </fieldset>


    <div id="QuickLinks">
        <a href="ViewCategory?categoryId=FISH"><img src="images/sm_fish.gif" /></a> <img src="images/separator.gif" />
        <a href="ViewCategory?categoryId=DOGS"><img src="images/sm_dogs.gif" /></a> <img src="images/separator.gif" />
        <a href="ViewCategory?categoryId=REPTILES"><img src="images/sm_reptiles.gif" /></a> <img src="images/separator.gif" />
        <a href="ViewCategory?categoryId=CATS"><img src="images/sm_cats.gif" /></a> <img src="images/separator.gif" />
        <a href="ViewCategory?categoryId=BIRDS"><img src="images/sm_birds.gif" /></a>
    </div>

</div>

<div id="Content">